package com.tvunetworks.center.user.mapper;

import com.tvunetworks.center.user.model.CustomizedUserDeviceGroup;
import com.tvunetworks.center.user.model.vo.PeerIdGroupVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Collection;
import java.util.List;
/**
 * @author lebronchen
 */
public interface CustomizedUserDeviceGroupMapper extends Mapper<CustomizedUserDeviceGroup> {
    /**
     *
     * @param userId userId
     * @param peerIds peerIds
     * @return List
     */
    List<PeerIdGroupVo> listDeviceGroup(@Param("userId") String userId, @Param("peerIds") Collection<String> peerIds);

    /**
     *
     * @param userId userId
     * @param peerId peerId
     * @return String
     */
    String getUserDeviceGroup(@Param("userId") String userId, @Param("peerId") String peerId);

    /**
     *
     * @param groupName groupName
     * @return List
     */
    List<String> listGroupRids(@Param("groupName") String groupName);

    /**
     *
     * @param userIds userIds
     * @return List
     */
    List<String> listUsersNotInGroupRids(@Param("userIds") List<String> userIds);
}
